<!-- 周边游 -->
<?php $this->load->view('home/layout/header') ?>
<div class="aroundGuide widthMax">
    <header class="header am-cf">
        <div class="return am-fl"><a href="javascript:goHistoryBack('<?php echo site_url();?>')"><i class="iconfont icon-zuojiantou"></i></a></div>
        <div class="title am-fl">周边游</div>
        <div class="more am-fl sec-doment am-dropdown" data-am-dropdown>
            <div class="am-dropdown-toggle" data-am-dropdown-toggle>
                <i class="iconfont">&#xe63a;</i>
            </div>
            <ul class="am-dropdown-content">
                <li><a href="<?php echo site_url();?>"><i class="iconfont">&#xe613;</i>首页</a></li>
                <li>
                    <a class="sales-share" href="<?php echo site_url('home/ucenter/index');?>">
                        <i class="iconfont">&#xe640;</i>我的
                    </a>
                </li>
            </ul>
        </div>
    </header>
    <div class="banner-lunbo am-slider am-slider-default " data-am-flexslider id="demo-slider-0">
        <ul class="am-slides">
            <?php if ($headerBanner->num_rows() >0): ?>
                <?php foreach ($headerBanner->result() as $key => $val ): ?>
                    <li><img src=<?php echo $this->config->show_image_url($val->picture)?> /></li>
                <?php endforeach ?>
            <?php endif ?>
        </ul>
        <div class="chose-area">
            <a href="<?php echo site_url('home/home/setCity') ?>">
                <i class="iconfont">&#xe660;</i>
                <span><?php echo $regionName;?></span>
                <i class="iconfont">&#xe614;</i>
            </a>
        </div>
    </div>
    <div class="hotArea">
        <div class="bigtitle am-cf">
            <span></span>
            <i>热门目的地</i>
        </div>
        <ul class="arealist am-cf">
            <?php if ($hotDestination->num_rows() >0): ?>
                <?php foreach ($hotDestination->result() as $key => $val ): ?>
                    <li>
                        <a  href="<?php echo $val->url;?>">
                            <div class="title">
                                <span><?php echo $val->name;?></span>
                                <p><?php echo $val->sub_name;?></p>
                            </div>
                            <img src=<?php echo $this->config->show_image_url($val->images)?> />
                        </a>
                    </li>
                <?php endforeach ?>
            <?php endif ?>
        </ul>
    </div>
    <div class="selectTopic">
        <div class="bigtitle am-cf">
            <span></span>
            <i>精选主题</i>
        </div>
        <ul class="topicList am-cf">
            <?php if (count($category) >0): ?>
                <?php foreach ($category as $key => $val ): ?>
                    <li>
                        <?php if ( !empty($province_id) ): ?>
                        <a href="<?php echo site_url('scenic/search/index').'?provinceid=' . $province_id . '&theme=' . $val['category_id'] ?>">
                        <?php else:?>
                        <a href="<?php echo site_url('scenic/search/index').'?cityid=' . $city_id . '&theme=' . $val['category_id'];?>">
                        <?php endif ?>
                            <i class="<?php echo 'topic-place' . ($key+1);?> topic-bg"></i>
                            <p><?php echo $val['category_name'];?></p>
                        </a>
                    </li>
                <?php endforeach ?>
            <?php endif ?>
        </ul>
    </div>
    <div class="hotScenic">
        <div class="bigtitle am-cf">
            <span></span>
            <i>更多热门景点</i>
        </div>
        <ul class="scenicList am-cf travel-around-list">
            <?php $this->load->view('home/home/ajaxTravelAround') ?>
        </ul>
        <div class="travel-around-more sec-load am-scrollspy-init <?php echo $more ? '' : 'am-hide'; ?>">
            <i class="iconfont am-animation-spin">&#xe60b;</i>
        </div>
        <div class="no-more <?php echo $more ? 'am-hide' : ''; ?>">
            没有更多了
        </div>
    </div>
</div>
<?php $this->load->view('home/layout/footer') ?>
